class ProvinceCityAreaEntity {
  int? value;
  String? label;
  List<Children>? children;

  ProvinceCityAreaEntity({this.value, this.label, this.children});

  ProvinceCityAreaEntity.fromJson(Map<String, dynamic> json) {
    value = json['value'];
    label = json['label'];
    if (json['children'] != null) {
      List<Children> children = [];
      json['children'].forEach((v) {
        children.add(Children.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = Map<String, dynamic>();
    data['value'] = value;
    data['label'] = label;
    if (children != null) {
      data['children'] = children?.map((v) => v.toJson()).toList();
    }
    return data;
  }
}

class Children {
  int? value;
  String? label;
  List<Children>? children;

  Children({this.value, this.label, this.children});

  Children.fromJson(Map<String, dynamic> json) {
    value = json['value'];
    label = json['label'];
    if (json['children'] != null) {
      List<Children> children = [];
      json['children'].forEach((v) {
        children.add(Children.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['value'] = value;
    data['label'] = label;
    if (children != null) {
      data['children'] = children?.map((v) => v.toJson()).toList();
    }
    return data;
  }
}
